package com.friendfeed.api;

public class UnexpectedResponseException extends FriendFeedServiceException {
    private int responseCode;

    public UnexpectedResponseException(int responseCode, String errorCode) {
        super("Unexpected error code of " + errorCode, errorCode);
        this.responseCode = responseCode;
    }

    public UnexpectedResponseException(int responseCode) {
        this(responseCode, null);
    }

    public int getResponseCode() {
        return responseCode;
    }
}
